// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import Client from '@api/visitor/api/MeetingLocationControllerApi'

import SelectClass from '@api/visitor/model/MeetingPermissionReq'

const CLIENT = CORE.grpcCLIENT(Client)

// ============================== 导出远程接口 ============================== //

export default {
  // —————————————————————————————— 下拉框 —————————————————————————————— //

  validSelectParam(param) {
    return param.id
  },
  async getSelect(selectParam, TIP = '查询下拉框') {
    const DTO = CORE.grpcDTO(SelectClass, selectParam)
    const resp = await CORE.grpc(TIP, CLIENT, 'meetingPermissionList', DTO)
    return resp.content || []
  },
}
